package com.flowershop.service;

import com.flowershop.dao.UserDao;
import com.flowershop.model.User;

public class UserService {
    private UserDao userDao = new UserDao();
    
    public User login(String username, String password) {
        User user = userDao.findByUsername(username);
        if (user != null && user.getPassword().equals(password)) {
            return user;
        }
        return null;
    }
} 